from .celery import app
@app.task  # user模块的任务, 发送短信
def send_sms(s):
    import time
    time.sleep(3)
    return '%s手机号，短信发送成功'%s